package cn.edu.sdjzu.xg.eagle.Service;

import cn.edu.sdjzu.xg.eagle.dao.DepartmentImpl;
import cn.edu.sdjzu.xg.eagle.entity.Department;

import java.sql.SQLException;

public class DepartmentService implements DepartmentServiceInterface{
    private static DepartmentService departmentService = null;
    private DepartmentService(){}
    public static DepartmentService getInstance(){
        if(departmentService == null){
            departmentService = new DepartmentService();
        }
        return departmentService;
    }
    @Override
    public Department find(Long id)throws SQLException {
        return DepartmentImpl.getInstance().find(id);
    }
}
